﻿using MXERP.Shared.Wrapper;

namespace MXERP.Infrastructure.Store
{
    public class Route: ITreeResponse<Route>
    {
        public long Id { get; set; }
        /// <summary>
        /// 父Id
        /// </summary>
        public long? PId { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public string Type { get; set; } = string.Empty;
        /// <summary>
        /// 名称
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        public string? Path { get; set; }
        /// <summary>
        /// 许可证
        /// </summary>
        public string? License { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string? Icon { get; set; }
        /// <summary>
        /// 模块名称
        /// </summary>
        public string Title { get; set; } = string.Empty;
        /// <summary>
        /// 是否隐藏
        /// </summary>
        public bool IsHide { get; set; } = false;
        /// <summary>
        /// 是否缓存
        /// </summary>
        public bool IsKeepAlive { get; set; } = true;
        /// <summary>
        /// 是否固定
        /// </summary>
        public bool IsAffix { get; set; } = false;
        /// <summary>
        /// 是否支持多个tab页签
        /// </summary>
        public bool IsMultiTab { get; set; } = false;
        /// <summary>
        /// 排序
        /// </summary>
        public int? Sort { get; set; }

        public List<Route>? Children { get; set; }
    }
}
